package mqueuex

// 支付状态
const PaymentStatusUserCancelled int32 = 1
const PaymentStatusAutoCancelled int32 = 2
const PaymentStatusNotPay int32 = 3
const PaymentStatusUserRefunded int32 = 11
const PaymentStatusAutoRefunded int32 = 12
const PaymentStatusPaid int32 = 21

// 支付渠道
const PaymentTypeAlipay int32 = 1 // 支付宝 
const PaymentTypeWeChatPay int32 = 2 // 微信支付 "WECHAT_PAY"
const PaymentTypeGems int32 = 3 // 宝石（积分）
const PaymentTypeNoNeedToPay int32 = 11
const PaymentTypeBank int32 = 12

// 第三方支付状态
const ThirdPartyPaymentTradeStateNotPay int32 = 1 // 未支付
const ThirdPartyPaymentTradeStateUserPaying int32 = 2 // 用户支付中（付款码支付）
const ThirdPartyPaymentTradeStateRevoked int32 = 3 // 已撤销（付款码支付）
const ThirdPartyPaymentTradeStateSuccess int32 = 4 // 支付成功
const ThirdPartyPaymentTradeStatePayError int32 = 5 // 支付失败（其他原因，如银行返回失败）
const ThirdPartyPaymentTradeStateClosed int32 = 6 // 已关闭
const ThirdPartyPaymentTradeStateRefund int32 = 7 // 转入退款

const WeChatPayTradeStateNotPay string = "NOTPAY" // 未支付
const WeChatPayTradeStateUserPaying string = "USERPAYING" // 用户支付中（付款码支付）
const WeChatPayTradeStateRevoked string = "REVOKED" // 已撤销（付款码支付）
const WeChatPayTradeStateSuccess string = "SUCCESS" // 支付成功
const WeChatPayTradeStatePayError string = "PAYERROR" // 支付失败（其他原因，如银行返回失败）
const WeChatPayTradeStateClosed string = "CLOSED" // 已关闭
const WeChatPayTradeStateRefund string = "REFUND" // 转入退款

// 订单来源
const OrderSourceWxMini int32 = 1 // 微信小程序
const OrderSourceCommon int32 = 2 // PC
const OrderSourceAndroid int32 = 3 // Android
const OrderSourceIOS int32 = 4 // IOS

// 订单类型
const OrderTypeCharge int32 = 1 // 充值
const OrderTypeVirtual int32 = 2 // 虚拟
const OrderTypeSeckill int32 = 11 // 秒杀
const OrderTypeLottery int32 = 12 // 抽奖
const OrderTypeCommon int32 = 21 // 普通实物
const OrderTypePackage int32 = 22 // 试香礼包
const OrderTypeUnused int32 = 23 // 闲置
const OrderTypeGroupon int32 = 31 // 团购
const OrderTypeCrowdFunding int32 = 32 // 众筹

const OrderTradeTypeCommon int32 = 1 // 一口价
// 订单类型 1:一口价；5：货到付款；7：预约

// 发货类型
const ShipmentTypeVirtual int32 = 1 // 虚拟
const ShipmentTypeCommon int32 = 11 // 快递
// 发货类型 0：快递；1：EMS；2：平邮；9：卖家承担运费（包邮）；11：虚拟物品；121：自提；122：商家自送（门店配送）

// 订单状态
const OrderTradeStateAdminDeleted int32 = 0 // 后台删除
const OrderTradeStateUserDeleted int32 = 1 // 用户删除
const OrderTradeStateUserCancelled int32 = 2 // 用户取消
const OrderTradeStateAdminCancelled int32 = 3 // 后台取消
const OrderTradeStateAutoCancelled int32 = 4 // 自动取消
const OrderTradeStateNotPay int32 = 11 // 未付款
const OrderTradeStateAdminRefunded int32 = 12 // 后台已主动退款
const OrderTradeStateAdminRefunding int32 = 13 // 后台主动退款中
const OrderTradeStateRefunded int32 = 14 // 已退款
const OrderTradeStateRefunding int32 = 15 // 退款中
const OrderTradeStateRefundApply int32 = 16 // 退款申请
const OrderTradeStatePaid int32 = 21 // 已付款
const OrderTradeStateReturned int32 = 22 // 已退货
const OrderTradeStateReturning int32 = 23 // 退货中
const OrderTradeStateReturnApply int32 = 24 // 退货申请
const OrderTradeStateShipping int32 = 31 // 备货中
const OrderTradeStateShipped int32 = 32 // 已发货
const OrderTradeStateDelivering int32 = 41 // 配送中
const OrderTradeStateDelivered int32 = 42 // 已配送
const OrderTradeStateConfirmed int32 = 51 // 确认收货
const OrderTradeStateAutoConfirmed int32 = 52 // 自动确认收货
const OrderTradeStateReviewed int32 = 61 // 已评价
const OrderTradeStateAutoReviewed int32 = 62 // 自动评价
const OrderTradeStateFulfilled int32 = 71 // 已完成
const OrderTradeStateClosed int32 = 72 // 已关闭

// 订单明细状态
const OrderItemStatusCommon int32 = 1 // 普通
const OrderItemStatusRefunded int32 = 11 // 已退款

const GemRatio int64 = 100
const WeChatPayRatio int64 = 100

const CloseOrderTimeMinutes int = 30  // defer close order time
const UpdateOrderTradeStateTimeMinutes int = 1  // defer update order trade state time

const AutoConfirmOrderDays int = 7

const UserAuthTypePlatform string = "platform" // 其他平台
const UserAuthTypeWxMini   string = "wxMini"   // 微信小程序

const UserStatisticForumLikeCount string = "_like_count"
const UserStatisticForumReviewCount string = "_review_count" // ##25.03.25##
const UserStatisticForumReviewPublicCount string = "_review_public_count"
const UserStatisticForumReviewNew string = "_review_new_status" // ##25.03.25##
const UserStatisticForumPhotoCount string = "_post_photo_count"
const UserStatisticForumPhotoPublicCount string = "_post_photo_public_count"
const UserStatisticForumPhotoNew string = "_photo_new_status"
const UserStatisticForumQuestionCount string = "_asked_question_count" // ##25.02.21##
const UserStatisticForumQuestionNew string = "_asked_question_new_status" // ##25.02.21##
const UserStatisticForumAnswerCount string = "_answered_question_count"
const UserStatisticForumAnswerNew string = "_answered_question_new_status"
const UserStatisticForumOrderCount string = "_order_count"
const UserStatisticForumOrderNew string = "_order_new_status"
const UserStatisticCollectEntryCount string = "_collect_entry_count"
const UserStatisticCollectEntryNew string = "_collect_entry_status"
const UserStatisticWantEntryCount string = "_want_entry_count" // ##25.03.12##
const UserStatisticOwnEntryCount string = "_own_entry_count" // ##25.03.12##
const UserStatisticOwnEntryNew string = "_own_entry_status" // ##25.03.12##

const UserCacheForumReview string = "_review_items"
const UserCacheForumReviewPublic string = "_review_public_items"
const UserCacheForumPhotoCount string = "_photo_post_count"
const UserCacheForumPhoto string = "_photo_post_items"
const UserCacheForumPhotoPublic string = "_photo_post_public_items"
const UserCacheForumQuestion string = "_asked_question_items"
const UserCacheForumAnswer string = "_answered_question_items"
const UserCacheCollectEntry string = "_collect_entry_items"
const UserCacheOwnEntry string = "_own_entry_items" // ##25.03.12##

const UserTaskForumReview string = "post_review"
const UserTaskForumPhoto string = "forum_photo"
const UserTaskForumQuestion string = "forum_topic"
const UserTaskForumAnswer string = "forum_reply"
const UserTaskForumOrder string = "fulfill_order"

const UserTaskPointForumReview int32 = 50 // 香评积分，暂不使用
const UserTaskPointForumQuestion int32 = 25
const UserTaskPointForumAnswer int32 = 25

const UserTaskGemForumReview int32 = 500 // 5 * 100(GemRatio)
const UserTaskGemForumQuestion int32 = 200 // 2 * 100(GemRatio)
const UserTaskGemForumAnswer int32 = 200 // 2 * 100(GemRatio)

const UserRewardGemForumReview int32 = 50

